﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace GrayParrot.Web.Controls//.Datatables.Filters
{
    [Serializable]
    //[TypeConverter(typeof(ExpandableObjectConverter))]
    public class MultiSelectColumnFilter : ColumnFilter
    {
        public string CustomFunction { get; set; }

        public SelectTypes SelectType { get; set; }

        public MultiSelectColumnFilter()
        {
            this.Type = FilterTypes.MultiSelect;

            if (!string.IsNullOrWhiteSpace(CustomFunction))
            {
                this.Type = FilterTypes.MultiSelectCustomFunc;
            }
        }
    }
}
